<?php
include_once("functions/db_manipulate.php");

if (!init()) {
    redirect("?action=login");
    exit();
}

?>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Действия с темами</title>
    <link rel="stylesheet" type="text/css" href="css/general.css">
    <script src="../resources/jquery.js"></script>

    <meta charset="UTF-8">
</head>

<body>
<?php
include_once("menu.php");
?>

<div class="contentdiv">
    <div class="usersmenu">
        <div class="usermenubutton" onclick="location.href='?action=index&block=all'">
            Все темы
        </div>
    </div>


    <?php
    if (isset($_GET['block'])) {
        switch ($_GET['block']) {
            case "all":
                include_once("manipulate_topics.php");
                break;
            default:
                include_once("manipulate_topics.php");
                break;
        }
    } else {
        include_once("manipulate_topics.php");
    }

    ?>
</div>
</body>
</html>